﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucOrder.ascx.cs" Inherits="Admin_ucOrder" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<h1>
    List Order</h1>
<style type="text/css">
    .style5
    {
        height: 32px;
    }
    .clsBtnSearch
    {
        background-image: url(../Admin/images/bt_seach.png);
        background-repeat: no-repeat;
        width: 44px;
        height: 27px;
        margin: 0;
        padding: 0;
        border: none;
    }
    .style5
    {
        width: 300px;
    }
    .ajax__calendar_container
    {
        cursor: default;
        font-family: tahoma,verdana,helvetica;
        font-size: 11px;
        padding: 4px;
        text-align: center;
        width: 170px;
    }
    .ajax__calendar_body
    {
        height: 139px;
        margin: auto;
        overflow: hidden;
        position: relative;
        width: 170px;
    }
    .ajax__calendar_days, .ajax__calendar_months, .ajax__calendar_years
    {
        height: 139px;
        left: 0;
        margin: auto;
        position: absolute;
        text-align: center;
        top: 0;
        width: 170px;
    }
    .ajax__calendar_container TABLE
    {
        font-size: 11px;
        margin: 0;
        padding: 0;
    }
    .ajax__calendar_container TD
    {
        font-size: 11px;
        margin: 0;
        padding: 0;
    }
    .ajax__calendar_header
    {
        height: 20px;
        width: 100%;
    }
    .ajax__calendar_prev
    {
        background-image: url("WebResource.axd?d=GIcLsoOvMHGVG-cFhUFFFwbrIrKkEQEY2SZxDLg4rOY9YhS3fP8GKi0sLt3QzG1R0&t=634562570840000000");
        background-position: 50% 50%;
        background-repeat: no-repeat;
        cursor: pointer;
        float: left;
        height: 15px;
        width: 15px;
    }
    .ajax__calendar_next
    {
        background-image: url("WebResource.axd?d=GIcLsoOvMHGVG-cFhUFFFwbrIrKkEQEY2SZxDLg4rObe6M_-8J4JTa3uFiJ7QfH10&t=634562570840000000");
        background-position: 50% 50%;
        background-repeat: no-repeat;
        cursor: pointer;
        float: right;
        height: 15px;
        width: 15px;
    }
    .ajax__calendar_title
    {
        cursor: pointer;
        font-weight: bold;
        margin-left: 15px;
        margin-right: 15px;
    }
    .ajax__calendar_footer
    {
        height: 15px;
    }
    .ajax__calendar_today
    {
        cursor: pointer;
        padding-top: 3px;
    }
    .ajax__calendar_dayname
    {
        height: 17px;
        padding: 0 2px;
        text-align: right;
        width: 17px;
    }
    .ajax__calendar_day
    {
        cursor: pointer;
        height: 17px;
        padding: 0 2px;
        text-align: right;
        width: 18px;
    }
    .ajax__calendar_month
    {
        cursor: pointer;
        height: 44px;
        overflow: hidden;
        text-align: center;
        width: 40px;
    }
    .ajax__calendar_year
    {
        cursor: pointer;
        height: 44px;
        overflow: hidden;
        text-align: center;
        width: 40px;
    }
    .ajax__calendar .ajax__calendar_container
    {
        background-color: #FFFFFF;
        border: 1px solid #646464;
        color: #000000;
    }
    .ajax__calendar .ajax__calendar_footer
    {
        border-top: 1px solid #F5F5F5;
    }
    .ajax__calendar .ajax__calendar_dayname
    {
        border-bottom: 1px solid #F5F5F5;
    }
    .ajax__calendar .ajax__calendar_day
    {
        border: 1px solid #FFFFFF;
    }
    .ajax__calendar .ajax__calendar_month
    {
        border: 1px solid #FFFFFF;
    }
    .ajax__calendar .ajax__calendar_year
    {
        border: 1px solid #FFFFFF;
    }
    .ajax__calendar .ajax__calendar_active .ajax__calendar_day
    {
        background-color: #EDF9FF;
        border-color: #0066CC;
        color: #0066CC;
    }
    .ajax__calendar .ajax__calendar_active .ajax__calendar_month
    {
        background-color: #EDF9FF;
        border-color: #0066CC;
        color: #0066CC;
    }
    .ajax__calendar .ajax__calendar_active .ajax__calendar_year
    {
        background-color: #EDF9FF;
        border-color: #0066CC;
        color: #0066CC;
    }
    .ajax__calendar .ajax__calendar_other .ajax__calendar_day
    {
        background-color: #FFFFFF;
        border-color: #FFFFFF;
        color: #646464;
    }
    .ajax__calendar .ajax__calendar_other .ajax__calendar_year
    {
        background-color: #FFFFFF;
        border-color: #FFFFFF;
        color: #646464;
    }
    .ajax__calendar .ajax__calendar_hover .ajax__calendar_day
    {
        background-color: #EDF9FF;
        border-color: #DAF2FC;
        color: #0066CC;
    }
    .ajax__calendar .ajax__calendar_hover .ajax__calendar_month
    {
        background-color: #EDF9FF;
        border-color: #DAF2FC;
        color: #0066CC;
    }
    .ajax__calendar .ajax__calendar_hover .ajax__calendar_year
    {
        background-color: #EDF9FF;
        border-color: #DAF2FC;
        color: #0066CC;
    }
    .ajax__calendar .ajax__calendar_hover .ajax__calendar_title
    {
        color: #0066CC;
    }
    .ajax__calendar .ajax__calendar_hover .ajax__calendar_today
    {
        color: #0066CC;
    }
</style>
<div style="text-align: left">
    <table border="0" cellpadding="0" cellspacing="1" width="100%">
        <tr>
            <td>
                <table border="0" cellpadding="0" cellspacing="1" width="100%">
                    <tr>
                        <td>
                            <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                <tr>
                                    <td style="padding: 5px 7px 5px 7px; text-align: left;">
                                        <table border="0" cellpadding="0" cellspacing="3" style="width: 600px">
                                            <tr>
                                                <td class="style5" colspan="2">
                                                    <table style="width: 500px" border="0">
                                                        <tr>
                                                            <td>
                                                                From Date:
                                                            </td>
                                                            <td align="left">
                                                                <asp:TextBox ID="txtFrDate" runat="server" Height="26px" Width="108px" Style="text-align: left"></asp:TextBox>
                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtFrDate"
                                                                    ErrorMessage="*" ValidationGroup="grpOrder"></asp:RequiredFieldValidator>
                                                                <br />
                                                                <asp:RangeValidator ID="RangeValidator1" runat="server" ErrorMessage="Please enter proper date"
                                                                    ControlToValidate="txtFrDate" Type="Date" ValidationGroup="grpOrder"></asp:RangeValidator>
                                                                <asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtFrDate"
                                                                    Format="dd/MM/yyyy">
                                                                </asp:CalendarExtender>
                                                            </td>
                                                            <td style="text-align: left; width: 70px">
                                                                To Date:&nbsp;
                                                            </td>
                                                            <td align="left">
                                                                <asp:TextBox ID="txtToDate" runat="server" Height="26px" Width="108px"></asp:TextBox>
                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtToDate"
                                                                    ErrorMessage="*" ValidationGroup="grpOrder"></asp:RequiredFieldValidator>
                                                                <br />
                                                                <asp:RangeValidator ID="RangeValidator2" runat="server" ErrorMessage="Please enter proper date"
                                                                    ControlToValidate="txtToDate" Type="Date" ValidationGroup="grpOrder"></asp:RangeValidator>
                                                                <asp:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txtToDate"
                                                                    Format="dd/MM/yyyy">
                                                                </asp:CalendarExtender>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                                Status:&nbsp;
                                                            </td>
                                                            <td align="left" class="style6">
                                                                <asp:DropDownList ID="DropDownList1" runat="server" Height="22px" Width="118px">
                                                                    <asp:ListItem Value="-2">All</asp:ListItem>
                                                                    <asp:ListItem Value="1">Tranfer Succsess</asp:ListItem>
                                                                    <asp:ListItem Value="-1">Tranfer Fail</asp:ListItem>
                                                                    <asp:ListItem Value="0">Not Tranfer</asp:ListItem>
                                                                </asp:DropDownList>
                                                            </td>
                                                            <td colspan="2">
                                                                &nbsp;
                                                                <%--<asp:Button ID="btnSubmit" CssClass="clsBtnSearch" runat="server" SkinID="btnSubmit"
                                                                    ValidationGroup="grpOrder" OnClick="btnSubmit_Click" Style="height: 26px" />--%>
                                                                <asp:ImageButton ID="btnSubmit" runat="server" ValidationGroup="grpOrder" ImageUrl="~/Admin/images/bt_seach.png"
                                                                    OnClick="btnSubmit_Click1" />
                                                                &nbsp;<asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtFrDate"
                                                                    ControlToValidate="txtToDate" ErrorMessage="Invalid Date" Operator="GreaterThan"
                                                                    Type="Date" ValidationGroup="grpOrder"></asp:CompareValidator>&nbsp;
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="center" style="padding-top: 10px;">
                                                    <%--<asp:ImageButton ID="cmdSubmit" runat="server" ToolTip="Save" ImageUrl="~/images/btnRegister.png"
                 ValidationGroup="grpRegister" />--%>
                                                </td>
                                        &nbsp;
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div style="text-align: left">
                                <table border="0" cellpadding="0" cellspacing="1" width="100%">
                                    <tr>
                                        <td>
                                            <table border="0" cellpadding="0" cellspacing="1" width="100%">
                                                <tr>
                                                    <td style="width: 100%">
                                                        <asp:ListView runat="server" ID="lvItem" OnPagePropertiesChanged="lvItem_PagePropertiesChanged"
                                                            ItemPlaceholderID="groupPlaceholder" GroupItemCount="1" GroupPlaceholderID="layoutTemplate" >
                                                            <EmptyDataTemplate>
                                                                No Order Found
                                                            </EmptyDataTemplate>
                                                            <LayoutTemplate>
                                                                <table runat="server" id="layoutTemplate" style="width: 900px; height: 400px" border="1" rules="all">
                                                                    <tr runat="server" id="head">
                                                                        <th id="Th1" runat="server" width="40px" style="text-align: center; font-size: 18">
                                                                            #
                                                                        </th>
                                                                        <th id="Th2" runat="server" width="45px" style="text-align: center; font-size: 18">
                                                                            OrderID
                                                                        </th>
                                                                        <th id="Th3" runat="server" width="80px" style="text-align: center; font-size: 18">
                                                                            OrderDate
                                                                        </th>
                                                                        <th id="Th6" runat="server" width="350px" style="text-align: center; font-size: 18">
                                                                            Address
                                                                        </th>
                                                                        <th id="Th4" runat="server" width="90px" style="text-align: right; font-size: 18">
                                                                            Total
                                                                        </th>
                                                                        <th id="Th5" runat="server" width="70px" style="text-align: right; font-size: 18">
                                                                            DeliveryFee
                                                                        </th>
                                                                        <th id="Th7" runat="server" width="100px" style="text-align: center; font-size: 18">
                                                                            TransactionID
                                                                        </th>
                                                                    </tr>
                                                                    <tr runat="server" id="groupPlaceholder">
                                                                    </tr>
                                                                </table>
                                                            </LayoutTemplate>
                                                            <ItemTemplate>
                                                                <tr id="tr1" runat="server">
                                                                    <td id="Td1" runat="server" style="text-align: center; font-size: 14">
                                                                        <asp:Label ID="lbstt" runat="server" Text='<%# Eval("row") %>'></asp:Label>
                                                                    </td>
                                                                    <td id="Td2" runat="server" style="text-align: center;font-size: 14">
                                                                        <asp:HyperLink ID="hyp_OrderId" runat="server" NavigateUrl='<%# "~/Admin/OrderDetail.aspx?keepThis=true&TB_iframe=true&width=700&height=500&id=" + Eval("OrderID")%>'
                                                                            CssClass="thickbox" Text='<%# Eval("OrderID") %>' ToolTip="ORDER DETAIL"></asp:HyperLink>
                                                                    </td>
                                                                    <td id="Td3" runat="server" style="text-align: center; font-size: 14">
                                                                        <asp:Label ID="lbOrderDate" runat="server" Text='<%# Convert.ToDateTime(Eval("OrderDate")).ToString("dd/MM/yyyy") %>'></asp:Label>
                                                                    </td>
                                                                    <td id="Td6" runat="server" style="text-align: left; font-size: 14">
                                                                        <asp:Label ID="Label1" runat="server" Text='<%# Eval("ShipTo") %>'></asp:Label>
                                                                    </td>
                                                                    <td id="Td5" runat="server" style="text-align: right; font-size: 14">
                                                                        <asp:Label ID="lbTotal" runat="server" Text='<%# double.Parse(Eval("Total").ToString()).ToString("0,00.##")%>'></asp:Label>
                                                                    </td>
                                                                    <td id="Td4" runat="server" style="text-align: right; font-size: 14">
                                                                        <asp:Label ID="lbDeliveryFee" runat="server" Text='<%# double.Parse(Eval("DeliveryFee").ToString()).ToString("0,00.##") %>'></asp:Label>
                                                                    </td>
                                                                    <td id="Td7" runat="server" style="text-align: center; font-size: 14">
                                                                        <asp:Label ID="Label2" runat="server" Text='<%# Eval("TransactionID")%>'></asp:Label>
                                                                    </td>
                                                                </tr>
                                                            </ItemTemplate>
                                                        </asp:ListView>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="right" style="padding-top: 15px;">
                                                        <asp:DataPager ID="DataPagerImages" runat="server" PagedControlID="lvItem" PageSize="10">
                                                            <Fields>
                                                                <asp:NextPreviousPagerField ButtonType="Link" ShowFirstPageButton="False" ShowNextPageButton="False"
                                                                    ShowPreviousPageButton="False" />
                                                                <asp:NumericPagerField />
                                                                <asp:NextPreviousPagerField ButtonType="Link" ShowLastPageButton="False" ShowNextPageButton="False"
                                                                    ShowPreviousPageButton="False" />
                                                            </Fields>
                                                        </asp:DataPager>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </td> </tr> </table>
</div>
